package com.kay.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kay.pojo.Token;
import org.apache.ibatis.annotations.Select;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/9/18$ 12:15$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/9/18$ 12:15$
 */
public interface TokenMapper extends BaseMapper<Token> {

    @Select("select * from lagou_token where token=#{token} order by id desc limit 1")
    Token selectTopOneByToken(String token);
}
